package com.example.music.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel(value = "管理员信息实体",description = "管理员信息实体描述")
public class Administrators {
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getaName() {
        return aName;
    }

    public void setaName(String aName) {
        this.aName = aName;
    }

    public Long getaAge() {
        return aAge;
    }

    public void setaAge(Long aAge) {
        this.aAge = aAge;
    }

    public Long getaPhone() {
        return aPhone;
    }

    public void setaPhone(Long aPhone) {
        this.aPhone = aPhone;
    }

    public Long getaPassword() {
        return aPassword;
    }

    public void setaPassword(Long aPassword) {
        this.aPassword = aPassword;
    }

    @ApiModelProperty("管理员序号")
    private Long id;

    @ApiModelProperty("管理员名字")
    @NotBlank(message = "管理员名字不能为空")
    @Size(min = 2,max = 20,message = "管理员名字长度必须在2-20之间")
    private String aName;

    @ApiModelProperty("管理员年龄")
    private Long aAge;

    @ApiModelProperty("管理员电话")
    private Long aPhone;

    @ApiModelProperty("管理员密码")
    private Long aPassword;
}
